add_library(
    tool
    STATIC
    Base64.cpp
    FileTool.cpp
    StringTool.cpp
)
set_runtime_name(tool)
set_out_path(tool)
# 设置安装路径
install(TARGETS tool
    ARCHIVE DESTINATION lib
    LIBRARY DESTINATION lib
    RUNTIME DESTINATION bin
)
# 安装头文件
install(FILES Base64.h FileTool.h StringTool.h
    DESTINATION include/xcom/tool
)